|Poster:||Madhavananda||Date:||Aug 20, 2005 6:54am|
|Forum:||faqs||Subject:||Re: Program/script used for grabbing stills?|
* * *
thisclip = avisource("your_video.avi").SelectEvery(25, 0).converttorgb24().assumefps(25)
ImageWriter(thisclip, "D:\Temp\avsframes\grab\grabbed_", start = 300, end = 400, type = "jpg")
* * *
The first figure of the SelectEvery command tells the script to select every 25 frames. If you use mpeg input, you'll have to use DirectShowSource() instead of avisource() to import the video. You can exclude the start and stop parameters from the ImageWriter if you want to write the selected frames from the entire video.
More on AviSynth:
I'm too tight on time to go into any length explaining how AviSynth works, just throwing in an idea to get you started. You can get more help for example at the Videohelp.Com forums.
This should get you started, one possible way to do this.